package osami.communication.translate;

import java.util.Vector;

import osami.bundle.OsamiServiceReference;
import osami.communication.OsamiIdentifier;

public class ServiceUpdateMessage extends Message
{
	public static final int REMOVE_SERVICES = 	0;
	public static final int ADD_SERVICES = 		1;
	public static final int ADD_NODE = 			2;
	public static final int REMOVE_NODE = 		3;

	protected Vector<OsamiServiceReference> iServices;
	protected int iAction = -1;
	protected OsamiIdentifier iSender;
	
	public int getType()
	{
		return Message.SERVICE_UPDATE;
	}
	
	
	public void setServices( Vector<OsamiServiceReference> aServices )
	{
		iServices = aServices;
	}
	
	
	public Vector<OsamiServiceReference> getServices()
	{
		return iServices;
	}

	
	public int getAction()
	{
		return iAction;
	}

	
	public void setAction( int aAction )
	{
		iAction = aAction;
	}
	

	public OsamiIdentifier getDestination()
	{
		return null;
	}


	public OsamiIdentifier getSender()
	{
		return iSender;
	}


	public void setSender( OsamiIdentifier aSender )
	{
		iSender = aSender;
	}
	
	
	public boolean isRequest()
	{
		return false;
	}
}
